<div class="modal-dialog modal-lg add-addr-dialog">
    <form>
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal">&times;</button>
            <h4 class="modal-title">{{controller.meta_title}}</h4>
        </div>
        <div class="modal-body">
            <!--<section class="panel panel-default m-b-xs">
                <header class="panel-heading">
                    <span class="label bg-danger pull-right m-t-xs">{{sum}}</span>
                    发货清单
                </header>
                <table class="table  m-b-none">
                    <thead>
                    <tr>
                        &lt;!&ndash;<th>货号</th>&ndash;&gt;
                        <th>商品名</th>
                        &lt;!&ndash;<th>规格</th>&ndash;&gt;
                        <th>价格</th>
                        <th>数量</th>
                        <th>小计</th>

                    </tr>
                    </thead>
                    <tbody>
                    {% for v in goods %}
                    <tr>
                        &lt;!&ndash;<td>
                            <span class="thumb-sm"><img class="img-responsive img-thumbnail" src="{{v.pic}}" alt="{{v.title}}"></span>
                        </td>&ndash;&gt;
                        <td>{{v.title}}</td>
                       &lt;!&ndash; <td>
                            {{v.type}}
                        </td>&ndash;&gt;
                        <td>
                            {{v.goods_price|formatCurrency}}
                        </td>
                        <td>{{v.goods_nums}}</td>
                        <td>{{v.sum|formatCurrency}}</td>
                    </tr>
                  {% endfor %}
                    </tbody>
                </table>
            </section>-->
            <section class="panel panel-default m-b-xs">
                <header class="panel-heading">
                    <span class="label bg-danger pull-right m-t-xs"></span>
                    {%if order.yewuleixing==0 or order.yewuleixing==1 %}供方信息{% else %}承接方信息{% endif %}
                </header>
                <table class="table  m-b-none">
                    <thead>
                    <tr>
                        <th>会员姓名</th>
                        <th>会员类型</th>
                        <th>联系电话</th>
                        <th>公司名称</th>
                        <th>身份证号</th>
                    </tr>
                    </thead>
                    <tbody>

                    <tr>
                        <td>{{order.gong_username}}</td>
                        <td>{%if user.groupid ==11 %}<span> app会员</span>{%elif user.groupid ==12%}<span> 核心企业</span>{%endif%}</td>
                        <td>{{order.gong_mobile}}</td>
                        <td>{{order.gong_gsmc}}</td>
                        <td>{{user.user_code}}</td>
                    </tr>

                    </tbody>
                </table>
            </section>
            <section class="panel panel-default m-b-xs">
                <header class="panel-heading">
                    <span class="label bg-danger pull-right m-t-xs"></span>
                    {%if order.yewuleixing== 0 or order.yewuleixing==1 %}需方信息{% else %}委托方信息{% endif %}
                </header>
                <table class="table  m-b-none">
                    <thead>
                    <tr>
                        <th>会员姓名</th>
                        <th>会员类型</th>
                        <th>联系电话</th>
                        <th>公司名称</th>
                        <th>身份证号</th>
                    </tr>
                    </thead>
                    <tbody>

                    <tr>
                        <td>{{order.xu_username}}</td>
                        <td>{%if user2.groupid ==11 %}<span> app会员</span>{%elif user2.groupid ==12%}<span> 核心企业</span>{%endif%}</td>
                        <td>{{order.xu_mobile}}</td>
                        <td>{{order.xu_gsmc}}</td>
                        <td>{{user2.user_code}}</td>
                    </tr>

                    </tbody>
                </table>
            </section>
            <section class="panel panel-default m-b-xs">
                <header class="panel-heading">
                    <span class="label bg-danger pull-right m-t-xs"></span>
                    订单信息 
                </header>
                <table class="table m-b-none">
                    <tbody>
                    {% if order.gongxufabuinfo %}
                    <tr>
                            <td class="active">挂单编号</td>
                            <td><a href="/admin/gongxufabu/see?id={{order.gongxufabuinfo.id}}" class="text-info"
                                data-toggle="ajaxModal">{{order.gongxufabuinfo.fabu_no}}</a></td>
                    </tr>
                    {% endif %}
                    <tr>
                        <td class="active">订单标题</td>
                        <td colspan="5">{{order.xinxibiaoti}}</td>
                    </tr>
                    <tr>
                        <td class="active">订单编号</td>
                        <td>{{order.order_no}}</td>
                        <!--<td class="active">发布时间</td>
                        <td>{{order.fabushijian|dateformat('Y-m-d H:i:s')}}</td>-->
                        <td class="active">下单时间</td>
                        <td>{{order.chuangjianshijian|dateformat('Y-m-d H:i:s')}}</td>
                        <td class="active">订单状态</td>
                        <td>
                            {%if order.status ==0 %}<span>等待审核 </span>
                            {%elif order.status ==1%}<span>已审核</span>
                            {%elif order.status ==2%}<span>已退回</span>
                            {%elif order.status == 3%}<span>已完成</span>
                            {%elif order.status ==4%}<span>已作废</span>
                            {%elif order.status ==5%}<span>已复核</span>
                            {%endif%}
                        </td>
                    </tr>
                    <tr>
                        <td class="active">商品类别</td>
                        <td>{{order.shangpingleibie}}</td>
                        <!--<td class="active">模块标识</td>
                        <td>{%if order.mokuaibiaoshi ==0 %}<span> 社区回收</span>{%elif order.mokuaibiaoshi ==1%}<span> 供销市场</span>{%elif order.mokuaibiaoshi ==2%}<span> 商品交易</span>{%endif%}</td>-->
                        {%if order.yewuleixing==0 or order.yewuleixing==1 %}{% set inactiveclass = "inactive" %}{% endif %}
                        <td class="active">付款比例</td>
                        <td class="{{order.persent or inactiveclass}}">{%if order.persent!=null %}{{ (order.persent + '%')}}{%endif%}</td>
                        <td class="active">发票税率</td>
                        <td class="{{order.taxes or inactiveclass}}"><span>{{order.taxes|get_taxes}}%</span></td>
                    </tr>
                    <tr>
                        <td class="active">地区</td>
                        <td>{{order.diqu}}</td>
                        <td class="active">详细位置</td>
                        <td>{{order.suozaiweizhi}}</td>
                    </tr>
                    <tr>
                        <td class="active">预计数量</td>
                        <td>{{order.shangpingshuliang|formatCurrency}}</td>
                        <td class="active">预计单价</td>
                        <td>{{order.jiage|formatCurrency}}</td>
                        <td class="active">预计货款</td>
                        <td>{{order.zongjia|formatCurrency}}</td>
                    </tr>
                    <tr>

                        <!--<td class="active">是否带票</td>
                        <td>{%if order.shifoudaipiao ==0 %}<span> 是</span>{%elif order.shifoudaipiao ==1%}<span> 否</span>{%endif%}</td>
                        <td class="active">是否合同</td>
                        <td>{%if order.shifouhetong ==0 %}<span> 是</span>{%elif order.shifouhetong ==1%}<span> 否</span>{%endif%}</td>-->
                    </tr>
                    <tr>
                        <td class="active">供方确认</td>
                        <td>{%if order.gongqueren ==0 %}<span> 否</span>{%elif order.gongqueren ==1%}<span> 是</span>{%endif%}</td>
                        <td class="active">需方确认</td>
                        <td>{%if order.xuqueren ==0 %}<span> 否</span>{%elif order.xuqueren ==1%}<span> 是</span>{%endif%}</td>
                        <td class="active">订单类型</td>
                        <td>{%if order.yewuleixing== 0 %}
                            供应
                            {% elif order.yewuleixing== 1  %}
                            采购
                            {% elif order.yewuleixing== 2  %}
                            委托加工
                            {% elif order.yewuleixing== 3  %}
                            承接加工
                            {% endif %}
                        </td>

                    </tr>
                    <tr>
                        <td class="active">商品描述</td>
                        <td colspan="5">{{order.leirongmiaoshu}}</td>
                    </tr>
                    {%if order.review_remark %}
                    <tr>
                        <td class="active" >{{order.review_remark.remark_type|get_remark_type}}备注</td>
                        <td colspan="3">{{order.review_remark.remark_contents}}</td>
                        <td class="active" >备注时间</td>
                        <td >{{order.review_remark.remark_time|moment('YYYY-MM-DD HH:mm:ss')}}</td>
                    </tr>
                    {%endif%}
                    <tr>
                        <td class="active">备注1</td>
                        <td colspan="5">{{order.remark1}}</td>
                    </tr>
                    <tr>
                        <td class="active">备注2</td>
                        <td colspan="5">{{order.remark2}}</td>
                    </tr>
                    <tr>
                        <td class="active">备注3</td>
                        <td colspan="5">{{order.remark3}}</td>
                    </tr>
                    <tr>
                        <td class="active">备注4</td>
                        <td colspan="5">{{order.remark4}}</td>
                    </tr>
                    </tbody>
                </table>

            </section>
            <section class="panel panel-default m-b-xs">
                <header class="panel-heading">
                    <span class="label bg-danger pull-right m-t-xs"></span>
                    图片详情
                </header>
                <table class="table  m-b-none">
                    <thead>
                    </thead>
                    <tbody>
                    {% for u in order.tupian|strToJson %}
                    <tr>
                        <span class=""><img class="img-responsive img-thumbnail" src="{{u}}" ></span>
                    </tr>
                    {% endfor %}
                    </tbody>
                </table>
            </section>
        </div>
        <div class="modal-footer">
            <input type="hidden" value="{{order.id}}" name="id">
            <a href="javascript:;" class="btn btn-default" data-dismiss="modal">关闭</a>

        </div>
    </div><!-- /.modal-content -->
    </form>
</div><!-- /.modal-dialog -->
